<?php
function fpub_gettanka($con, $city_code, &$price_base, &$price_premiere, &$price_tokubai, &$price_reserve)
	{
	include_once "common.php";
	include_once $CON_INCDIR . "fpub_runquery.php";

	if ($city_code == "") return 0;

	$sqlstr  = "SELECT price_base, price_premiere, price_tokubai, price_reserve";
	$sqlstr .= " FROM service";
	$sqlstr .= " WHERE city_code = '" . $city_code . "'";
	$res = fpub_runquery($con, $sqlstr);
	if (!$res) return 0;

	list($d_price_base, $d_price_premiere, $d_price_tokubai, $d_price_reserve) = mysql_fetch_row($res);
	if ($d_price_base == "")
		$price_base = 0;
	else
		$price_base = $d_price_base;
	if ($d_price_premiere == "")
		$price_premiere = 0;
	else
		$price_premiere = $d_price_premiere;
	if ($d_price_tokubai == "")
		$price_tokubai = 0;
	else
		$price_tokubai = $d_price_tokubai;
	if ($d_price_reserve == "")
		$price_reserve = 0;
	else
		$price_reserve = $d_price_reserve;

	}
?>